home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: newsfeed.internetmci.com!iglou!iglou2!quare
- From: quare@iglou2.iglou.com (quare)
- Subject: Re: EMM386 Problem - main.c (0/1)
- X-Nntp-Posting-Host: iglou2
- Message-ID: <DKLGBy.Is7@iglou.com>
- Sender: news@iglou.com (News Administrator)
- Organization: IgLou Internet Services (1-800-436-4456)
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4c9o94$640@zeke.ebtech.net> <4cc776$dah@gatekeeper.cng.com> <4cd3mb$cfo@zeke.ebtech.net>
- Date: Wed, 3 Jan 1996 07:19:10 GMT
-
- Paul Anderson (panderso@ebtech.net) wrote:
-
- [snip]
-
- > int loadcnf(FILE *in)
- > {
- > char indata[40];
- > int tmp;
- > /* Struct defed in menu.h... */
- > fscanf(in,"%s", &indata);
- > if (indata=="ON")
- > {
- > tmp=1;
-
- You are passing a pointer to a pointer to char with &indata. fscanf()
- calls for a pointer to specified type. You can append [0] to &indata
- or simply remove the referencing operator.
-
- Read the faq.
-
-
-
-
-
- --
- !quare
-
-